﻿<%@ Page Language="C#" MasterPageFile="~/Users/Users.Master" AutoEventWireup="true" CodeBehind="ViewListProgram.aspx.cs" Inherits="Pantry.Web.Users.ViewListProgram" Title="View list programs" %>

<%@ Register TagPrefix="cc1" Namespace="SiteUtils" Assembly="CollectionPager" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="Resources/css/lachv.css" />
	<title>List Programmes</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<div class="g_12">
    <div class="top_list">
		<h4>List Programme</h4>
    </div>
	<div class="widget_header ">
		<div class="listBottomTop">
		    
		    <div class="buttonTop checkboxListProgram">
                <span style="float: left; margin-top: 3px">
                    <asp:CheckBox ID="CheckBoxIncludeActivate" runat="server" CssClass="simple_form checkboxListProgram" AutoPostBack="True" Checked="true" OnCheckedChanged="CheckBoxIncludeActivateChanged" />
                </span>
                <label class="simple_form" for="CheckBoxIncludeActivate">in-active</label>
		    </div>
		    <div class="buttonTop">
		        <a href="ProgramDetail.aspx">
		            <div>
		                <input type="button" class="simple_buttons" value="Create" />
		            </div>    
		        </a>
		    </div>
    
			<div class="clear"></div>
		</div>
	</div>
	
	<div class="clear"></div>
	<div class="widget_contents noPadding">
		<table class="tables">
			<thead>
				<tr>
					<th></th>
					<th class="sorting">
					    <asp:LinkButton ID="ButtonSortByName" runat="server" OnClick="ButtonSortByNameClick">Programme Name</asp:LinkButton>
					</th>
					<th class="sorting">
					    <asp:LinkButton ID="ButtonSortByDescription" runat="server" OnClick="ButtonSortByDescriptionClick">Description</asp:LinkButton>
					</th>
					<th class="sorting">
					    <asp:LinkButton ID="ButtonSortByContact" runat="server" OnClick="ButtonSortByContactClick">Contact Name</asp:LinkButton>
					</th>
					<th class="sorting">
					    <asp:LinkButton ID="ButtonSortByStatus" runat="server" OnClick="ButtonSortByStatusClick" Text="Is Active?"/>
					</th>
				</tr>
			</thead>
			<tbody>
			    <asp:Repeater runat="server" ID="RepeaterProgram">
			    <ItemTemplate>
				    <tr>
					    <th><input type="radio" class="simple_form" name="selectedID" /></th>
					    <td><a href="ProgramDetail.aspx?Id=<%#Eval("ProgramId") %>"><%# Eval("ProgramName") %></a></td>
					    <td><%# Eval("Description") %></td>
					    <td><%# Eval("SurName") %> <%# Eval("FirstName") %></td>
					    <td><%# Eval("IsActive") %></td>
				    </tr>
				</ItemTemplate>
				</asp:Repeater>
			</tbody>
		</table>
	</div>
	<div class="dtPagination">
        <CC1:COLLECTIONPAGER id="CollectionPager" runat="server" BackText="Back" FirstText="First" ShowLabel="False" ShowFirstLast="False" NextText="Next" ResultsLocation="None" PageNumbersSeparator=" "
        PagingMode="PostBack" HideOnSinglePage="false">
        </CC1:COLLECTIONPAGER>
    </div>
	
</div>
<script type="text/javascript">
        $(document).ready(function() {
          $('ul.tab_nav li').removeClass("active_tab");
          $('ul.tab_nav li.i_32_inbox').addClass("active_tab");
        });
    </script>
</asp:Content>
